package com.study.ioc.demo.listener;

import org.springframework.context.ApplicationEvent;

public class MyEvent extends ApplicationEvent {

    private static final long serialVersionUID = -1801452738883374207L;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public MyEvent(Object source) {
        super(source);
    }

    public void print() {
        System.out.println("hello spring event!");
    }

}
